import { observable, action } from 'mobx';
import { ListAdvanced } from 'weaver-mobile-page';
import * as Apis  from "../../apis/docReportApi/workflowListApi";
export default class WorkflowListStore {
  @observable listAd = new ListAdvanced.Store({ route: '', id: 'demo0' });
  @observable userId = "";
  @observable seriesId = "";

  @action.bound
  setSeriesId(seriesId){
    this.seriesId = seriesId;
  }

  @action.bound 
  setListStorePath(path){
    this.listAd = new ListAdvanced.Store({ route: path});
  }

  //获取用户id
  @action.bound
  getUserId(){
    Apis.getUserId().then(data=>{
      if(data.api_status){
        this.userId = data.userId;
      }
    })
  }

}
